const Router = require('koa-router');
const docsController = require('../controllers/docsController');

const router = new Router();

// API文档路由
router.get('/docs', docsController.getApiDocs);
router.get('/api-docs', docsController.getApiDocs);
router.get('/swagger', docsController.getSwaggerUI);
router.get('/swagger-ui', docsController.getSwaggerUI);

// API规范JSON路由
router.get('/api/spec', docsController.getApiSpec);
router.get('/openapi.json', docsController.getApiSpec);

module.exports = router;